package com.shiro.cusrealm;

import com.shiro.dao.UserDao;
import com.shiro.model.User;

import java.sql.Connection;
import java.util.Set;

/**
 * TODO 例...学生模型类，存储学生信息。
 *
 * @author 高旭
 * @date 2021-08-04
 */
public class UserDaoImpl implements UserDao {
    @Override
    public User getUserByUserName(Connection conn, String userName) {
//        select * from t_user where userName=#{userName}
        return null;
    }

    @Override
    public Set<String> getRolesByUserName(Connection conn, String userName) {
//        select r.roleName from t_user u,t_role r where u.roleId=r.id and u.userName=#{userName}
        return null;
    }

    @Override
    public Set<String> getPermissionsByUserName(Connection conn, String userName) {
//        select p.permissionName from t_user u,t_role r,t_permission p where u.roleId=r.id and p.roleId=r.id and u.userName=#{userName}
        return null;
    }
}
